package com.ruoyi.management.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.management.domain.Bx;
import com.ruoyi.management.domain.StatisRequest;
import com.ruoyi.management.service.StatisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;

@RestController
@RequestMapping("/statisdata")
public class StatisController {
    @Autowired
    private StatisService statisService;
    /**
     * 查询统计
     * */
    @GetMapping("/getstatistics")
    public AjaxResult getstatistics (Bx bx) throws IOException {
        String path = statisService.statisPdfList(bx);
        return AjaxResult.success(path);
    }

}
